package com.yxw.live_vod_boot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import java.io.Serializable;


/** 
 * @author liuxin
 * @create 2023-11-22 09:15:41 
 * @description 点播评论 
 */
@Data
@TableName(value ="yx_on_demand_comment")
@ApiModel(value = "点播评论" , description="yx_on_demand_comment")
public class YxOnDemandCommentEntity  implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "comment_id",type = IdType.ASSIGN_ID)
    @ApiModelProperty(value="评论ID")
    private Long commentId;

    @TableField(value="user_id")
    @ApiModelProperty(value="评论人ID")
    private Long userId;

    @TableField(value="user_name")
    @ApiModelProperty(value="评论人名称")
    private String userName;

    @TableField(value="video_id")
    @ApiModelProperty(value="评论视频ID")
    private Long videoId;

    @TableField(value="comment_time")
    @ApiModelProperty(value="评论时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date commentTime;

    @TableField(value="reply_comment_id")
    @ApiModelProperty(value="回复评论ID")
    private Long replyCommentId;

    @TableField(value="comment_note")
    @ApiModelProperty(value="评论内容")
    private String commentNote;

    @TableField(value="top_flag")
    @ApiModelProperty(value="置顶 0：否 1：是")
    private Integer topFlag;

    @TableField(value="comment_type")
    @ApiModelProperty(value="1-评论 2-回复")
    private Integer commentType;

}
